import { onMunted, onUnmounted, ref } from "vue";
export function useAnimation(animationName, duration) {
  const isAnimating = ref(false);

  const startAnimation = () => {
    isAnimating.value = true;
    setTimeout(() => {
      isAnimating.value = false;
    }, duration);
  };
  return { isAnimating, startAnimation };
}
